'Declaration
Public Overloads Shared Function InsertAsync(Of T As Class)( _ ByVal dataCollection As IDataCollection(Of T), _ ByVal index As Integer, _ ByVal item As T, _ Optional ByVal cancellationToken As CancellationToken _ ) As Task(Of Integer)
public static Task<int> InsertAsync<T>( IDataCollection<T> dataCollection, int index, T item, CancellationToken cancellationToken ) where T: class
Parameters
- dataCollection
- The data collection.
- index
- The index where the item will be inserted.
- item
- The item to be inserted.
- cancellationToken
- The cancellation token.
Type Parameters
- T